//package com.palm.hubo2o.ui;
//
//import android.content.Intent;
//import android.os.Bundle;
//import android.support.v4.content.ContextCompat;
//import android.support.v7.widget.LinearLayoutManager;
//import android.view.View;
//
//import com.palm.hubo2o.BaseActivity;
//import com.palm.hubo2o.R;
//import com.palm.hubo2o.adapter.HelpAdapter;
//import com.palm.hubo2o.util.Constant;
//import com.palm.palmutils.widget.EasyRecyclerView;
//import com.palm.palmutils.widget.refreshlayout.RefreshLayout;
//
//import butterknife.Bind;
//
///**
// * Created by dest1 on 2015/12/4.
// */
//public class HelpActivity extends BaseActivity implements EasyRecyclerView.OnItemClickListener {
//    @Bind(R.id.recyclerview)
//    EasyRecyclerView mRecyclerView;
//    @Bind(R.id.refreshlayout)
//    RefreshLayout mRefreshLayout;
//
//    @Override
//    public void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_list);
//        setTitle(getIntent().getStringExtra(Constant.TITLE_TAG));
//        mRefreshLayout.setEnabled(false);
//        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
//        mRecyclerView.addItemDecoration(new SimpleListDividerDecorator(ContextCompat.getDrawable(getContext(), R.drawable.divider_horizontal_dark), true));
//        mRecyclerView.setAdapter(new HelpAdapter(this));
//        mRecyclerView.setSelector(RippleSalon.generateRippleDrawable(false));
//        mRecyclerView.setDrawSelectorOnTop(true);
//        mRecyclerView.setOnItemClickListener(this);
//    }
//
//    @Override
//    public boolean onItemClick(EasyRecyclerView parent, View view, int position, long id) {
//        Intent i = new Intent(this, WebActivity.class);
//        String url = "";
//        switch (position) {
//            case 0:
//                url = "file:///android_asset/web/ssq_play_type.html";
//                break;
//            case 1:
//                url = "file:///android_asset/web/d3_play_type.html";
//                break;
//            case 2:
//                url = "file:///android_asset/web/qlc_play_type.html";
//                break;
//            case 3:
//                url = "file:///android_asset/web/limit_caption.html";
//                break;
//            case 4:
//                url = "file:///android_asset/web/ssq_term.html";
//                break;
//            case 5:
//                url = "file:///android_asset/web/dt_caption.html";
//                break;
//            case 6:
//                url = "file:///android_asset/web/c225_play_type.html";
//                break;
//            case 7:
//                url = "file:///android_asset/web/k3_play_type.html";
//                break;
//            default:
//                break;
//        }
//        i.putExtra(Constant.URL_TAG, url);
//        startActivity(i);
//        return true;
//    }
//
//}
